import request from '@/utils/request'

export function findCollection(query) {
  return request({
    url: '/anxin/sumarry/findCollection',
    method: 'get',
    params: query
  })
}

export function refreshReport() {
  return request({
    url: '/anxin/sumarry/refresh',
    method: 'get'
  })
}

// 根据部门用户查询回款
export function findCollectionByTeamUserIds(query) {
  return request({
    url: '/anxin/sumarry/findCollectionByTeamUserIds',
    method: 'post',
    data: query
  })
}

// 获取用户列表
export function findUserList(query, deptId) {
  return request({
    url: '/anxin/sumarry/getUsers/' + deptId,
    method: 'get',
    params: query
  })
}

// 获取团队人数
export function getTeamUser(query) {
  return request({
    url: '/anxin/team/teamUser/getTeamUserList',
    method: 'get',
    params: query
  })
}
